package com.doudou.oauth.token;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @author 傻男人
 * @date 2020-05-08 22:48
 * @describe
 */
public class AccessTokenRemoteAuthenticationToken extends AbstractAuthenticationToken {


    String token;

    public AccessTokenRemoteAuthenticationToken(Collection<? extends GrantedAuthority> authorities) {
        super(authorities);
    }

    @Override
    public Object getCredentials() {
        return "";
    }

    @Override
    public Object getPrincipal() {
        return "";
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}